<?php

/*
 * This file is part of the Geek-Zoo Projects.
 *
 * @copyright (c) 2010 Geek-Zoo Projects More info http://www.geek-zoo.com
 * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License
 * @author quqiang <quqiang@geek-zoo.com>
 *
 */

require ROOT_PATH.'/Helper/front_base_abstract.php';

class Action extends front_base_abstract{
    function index(){
        $lang = $_SESSION['lang'];
        $id = _GET('id', 0);
        if ($lang && $lang=='zh') {
            $lang = 1;
        } else {
            $lang = 0;
        }
        
        if ($lang) {
           $info = _model('assets')->read(array('id'=>'24'));
        } else {
            $info = _model('assets')->read(array('id'=>'23'));
        }
        $data = _model('assets')->read(" WHERE cate_group_id=4 AND language=$lang");    
        $option = array();
        $option = explode('|', $data['description']);
        $this->view->assign('option', $option);
        $this->view->assign('info', $info);
        $this->view->display('front/business_input.html');
    }
}


?>